home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / dhcp / dhclient-enter-hooks.d / debug next >
Encoding:
Text File  |  2012-08-02  |  1001 b   |  28 lines

  1. #
  2. # The purpose of this script is just to show the variables that are
  3. # available to all the scripts in this directory. All these scripts
  4. # are called from /etc/dhcp3/dhclient-script, which exports all the
  5. # variables shown before. If you want to debug a problem with your DHCP
  6. # setup you can enable this script and take a look at
  7. # /tmp/dhclient-script.debug.
  8.  
  9. # To enable this script set the following variable to "yes"
  10. RUN="no"
  11.  
  12. if [ "$RUN" = "yes" ]; then
  13.     echo `date`: entering dhclient-enter-hooks.d, dumping variables. \
  14.         >> /tmp/dhclient-script.debug
  15.  
  16.     for i in reason interface medium alias_ip_address new_ip_address \
  17.         new_subnet_mask new_domain_name new_domain_search \
  18.         new_domain_name_servers \
  19.         new_routers new_static_routes old_ip_address old_subnet_mask \
  20.         old_domain_name old_domain_search old_domain_name_servers \
  21.         old_routers old_static_routes; do
  22.  
  23.         echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
  24.     done
  25.  
  26.     echo '--------------------------' >> /tmp/dhclient-script.debug
  27. fi
  28.